#include "pizzaShopNormal.hpp"

#include <iostream>

using namespace std;

int main()
{
    // shr::pizza* pizza_1 = shr::simplePizzaFactor().orderPizza("greek");
    // cout << shr::type(pizza_1) << endl;

    // shr::pizza* pizza_2 = shr::simplePizzaFactor().orderPizza("cheese");
    // cout << shr::type(pizza_2) << endl;

    // shr::pizzaStore pzstore;
    // shr::pizza* pz = pzstore.orderPizza("greek");
    // cout << "get a pizza, type: " << shr::type(pz) << endl;

    shr::NYPizzaStore NYPZStore; //选择披萨店
    shr::pizza* pz_1 = NYPZStore.orderPizza("greek"); //选择披萨种类并点单
    cout << "which store: " << pz_1->tag() << ", which type: " << pz_1->type() << endl;
    cout << "----------------" << endl;
    
    shr::ChicagoPizzaStore CCGPZStore;
    shr::pizza* pz_2 = CCGPZStore.orderPizza("cheese");
    cout << "which store: " << pz_2->tag() << ", which type: " << pz_2->type() << endl;
    return 0;
}